<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function deleteChengji(id){
	var sure = window.confirm("sure to delete this child ?");
	if(sure){
		window.location='/kindergarten/chengji/deleteChengji.action?id='+id;
	}
}
</script>
</head>
<body>
<table>
	<c:forEach var="chengji" varStatus="idx" items="${chengjiList}">
	<tr bgcolor='${idx.count%2==0?"#EEE8AA":"#66CDAA"}'>
		<td></td><input type="hidden" name="id" value="${chengji.cid}" /></td><td>${idx.count%2==0?'1':'2'}</td><td>${chengji.fenshu}</td><td><a href="javascript:void(0)" onclick="deleteChengji('${chengji.cid}')">delete</a></td><td><a href="/kindergarten/chengji/updateChengjiUI.action?id=${chengji.cid}">update</a></td>
	</tr>
	</c:forEach>
</table>	
	<a href="/kindergarten/chengji/addUI.action">add chengji</a><br/>
</body> 